# "Government participation in virtual negotiations: evidence from IPCC approval sessions." _Replication package_
## Replication package curated by Lorenzo Crippa, University of Glasgow

This package allows users to replicate all empirics reported in the main paper and supplementary materials of: Bayer, P., Crippa, L., Hughes, H., & Erlend Hermansen. Government participation in virtual negotiations: evidence from IPCC approval sessions. _Climatic Change_ 177, 132 (2024). https://doi.org/10.1007/s10584-024-03790-7 

### Content description
The package is composed of the following folders:
- `code` contains the script `analysis.R` which replicates all empirics in the main text and supplementary materials. Content in `analysis.R` is presented in the order in which it is referred to, in the main text.
- `data` contains the two datasets that serve the analysis, both in `.rds` format.
	- `data/data_participation.rds` reports the number of delegates per each country participating to at least one of the IPCC approval sessions (synthesis report or any working group) in AR5 and AR6.
	- `data/data_engagement.rds` reports information on number of delegates, share of negotiating hours occurring out of office, and number of country mentions in ENB reports for IPCC working group approval sessions in AR6 only.
- `plots` is an empty folder where plots are saved
- `tables` is an empty folder where tables are saved

The root directory of the package also includes the following files: 
- `session.log` reports information on the software versions used (operating system, R, and packages)
- `govt_part_CC_replication.Rproj` is an R project linked to the replication package folder

### Replicating materials
Users have two ways to replicate the material.
1. **Suggested**. Users can simply open the R project file in a dedicated RStudio session and run the code `code/analysis.R` without needing to update any working directory. This will work regardless of where the replication package is located in the users' file system.
2. Users can open the `code/analysis.R` in an RStudio session and specify the working directory by editing code line 4 of `code/analysis.R` with their own working directory path.

Once running, the code will generate and export all results reported in the main text and supplementary materials. Some statements reported in the text (e.g., on individual countries' number of delegates, mentions, etc.) are generated in the code and highlighted via code comments but they do not get exported automatically. 

### Contacts
For any query, please feel free to contact the replication package curator, Lorenzo Crippa at: crippa.lnz@gmail.com
